//
//  CPSCHomeToolsAllCollectionCell.m
//  CollTest
//
//  Created by codew on 9/13/21.
//

#import "CPSCHomeToolsAllCollectionCell.h"
#import "CPSCHomeToolsConstantsValue.h"
@interface CPSCHomeToolsAllCollectionCell ()

@property (weak, nonatomic) IBOutlet UIView *viewContent;

/** 标签图片 */
@property (weak, nonatomic) IBOutlet UIImageView * imageViewMark;
/** 名称 */
@property (weak, nonatomic) IBOutlet UILabel * lblToolsName;
/** 说明 */
@property (weak, nonatomic) IBOutlet UILabel * lblToolsSummary;

@end

@implementation CPSCHomeToolsAllCollectionCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    
    self.lblToolsName.textColor = [UIColor colorWithHexString:@"#222222"];
    self.lblToolsName.font = [UIFont systemFontOfSize:14 weight:1];
    self.lblToolsName.textAlignment = NSTextAlignmentLeft;
    
    self.lblToolsSummary.textColor = [UIColor colorWithHexString:@"#999999"];
    self.lblToolsSummary.font = [UIFont systemFontOfSize:11];
    self.lblToolsSummary.textAlignment = NSTextAlignmentLeft;
}


- (void)updateCellWithItem:(id)item
{
    NSString * imageName = @"tools";
    NSInteger value = arc4random_uniform(4);
    
    while (value == 0 ) {
        value = arc4random_uniform(4);
    }
    
    imageName = [NSString stringWithFormat:@"%@%zd", imageName, value];
    
    self.imageViewMark.image = [UIImage imageNamed:imageName];
    
    
    self.lblToolsName.text = @"查公司";
    self.lblToolsSummary.text = @"经营范围、法人和类型";
}
#pragma mark--initUI

- (void)initSubviews {
    self.backgroundColor = [UIColor clearColor];
    
}

- (void)makeContraints {
    
    
}

#pragma mark - Getter Setter


@end
